function e(e, t, n) {
    return t in e ? Object.defineProperty(e, t, {
        value: n,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : e[t] = n, e;
}

var t;

App({
    onLaunch: function() {
        var e = this;
        wx.cloud.init();
        var t = this;
        wx.getSetting({
            success: function(e) {
                e.authSetting["scope.userInfo"] ? t.scopeUserInfo = 1 : t.scopeUserInfo = 0;
            }
        }), this.globalData.myDevice = wx.getSystemInfoSync(), wx.login({
            success: function(e) {}
        }), wx.getSetting({
            success: function(t) {
                t.authSetting["scope.userInfo"] && wx.getUserInfo({
                    success: function(t) {
                        e.globalData.userInfo = t.userInfo, e.userInfoReadyCallback && e.userInfoReadyCallback(t);
                    }
                });
            }
        }), wx.request({
            url: "https://ishare20.net/gifmaker/appset.json",
            headers: {
                "Content-Type": "application/json"
            },
            success: function(e) {
                t.globalData.appset = e.data;
            }
        }), wx.request({
            url: "https://ishare20.net/gifmaker/wxminiset.json",
            headers: {
                "Content-Type": "application/json"
            },
            success: function(e) {
                t.globalData.wxminiset = e.data;
            }
        });
    },
    globalData: (t = {
        userInfo: null,
        myDevice: null,
        imgUrl: [],
        selectImageUrl: "",
        apiUrl: "https://ishare20.net/textToPic"
    }, e(t, "userInfo", null), e(t, "ad", {}), e(t, "appset", {}), e(t, "appid", "wxb95c179e268861ca"), 
    e(t, "wxminiset", []), t)
});